<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<meta name="format-detection" content="telephone=no" />
		<title>找回密码</title>
		<link rel="stylesheet" type="text/css" href="../css/aui.css" />
		<style>
			body {
				background-color: #F3F3F3;
			}
			.aui-content {
				padding-top: 10%;
			}
			.aui-btn-info{
				background-color: #327AFA;
			}
			.aui-btn-block {
				margin-top: 5px;
				padding: 8px 0;
				font-size: 18px;
				margin: auto;
				width: 94%;
			}
			.aui-input-row {
				margin: 0 18px;
			}
			.aui-input-row {
				border-top: 0px solid #c8c7cc;
				margin-left: 10px;
			}
			.aui-input-row:first-child:after {
				border-top: 0px solid #c8c7cc;
			}
			.aui-btn-row:after {
				border-bottom: 0px solid #c8c7cc;
			}
			.aui-form{
				width: 85%;
				margin:auto;
			}
			.aui-input-addon{
				border-right: 1px solid #c8c7cc;
				padding-right: 10px !important;
			}
			.tips{
				padding-left: 3%;
				padding-bottom: 5%;
			}
			.star{
				color: #FD4F2A;
				float: left;
				height: 10px;
				line-height: 14px;
				padding-right: 1%;
			}
			.tips p{
				color: #686868;
				font-size: 12px;
			}
			.tip2{
				padding-left: 8%;
			}
			.kfmobile{
				color: #0168f3;
			}
		</style>
	</head>
	<body>
		<div class="aui-content">
			<div class="tips">
				<span class="star">*</span><p>请输入您注册时使用的手机号</p>
			</div>
			<div class="aui-form aui-card">
				<div class="aui-input-row">
					<span class="aui-input-addon">手机号</span>
					<input type="tel" id="mobile" class="aui-input" placeholder="请输入手机号"/>
				</div>
			</div>
			<div class="aui-btn-row">
					<div class="aui-btn aui-btn-info aui-btn-block" tapmode onclick="confirm();">
						下一步
					</div>
			</div>
			<div class="tips tip2">
				<span class="star">*</span><p>如遇到问题，可咨询中纺客服：<span class="kfmobile">130********</span></p>
			</div>
		</div>
	</body>
	<script type="text/javascript" src="../script/api.js"></script>
	<script type="text/javascript" src="../script/common.js"></script>
	<script type="text/javascript">
		var isinerval, times;
		apiready = function() {
			api.parseTapmode();
		}

		//登录
		function confirm() {
		// 	验证手机号
			var mobile = $api.val($api.byId('mobile'));
			var partten = /^1[3-9]\d{9}$/;
			if (!partten.test(mobile)) {
				api.toast({
					msg : '请输入正确的手机号',
					duration : 2000,
					location : 'bottom'
				});
				return false;
			}
			// 获取手机是否注册
			var url = 'register/verifyMobile/mobile/' + mobile;
			ajaxRequest(url, 'get', '', function(ret, err) {
				if (ret.status == '1') {
					api.toast({
						msg : '该手机号未注册',
						duration : 2000,
						location : 'bottom'
					});
					return false;
				} else {
					api.openWin({
			            name : 'forget2_win',
			            url : 'forget2_win.html',
			            pageParam : {
							mobile : mobile
						},
			            reload : true,
			            delay : 300
			        });
				}
			});
		}


	</script>
</html>